package com.growthsee.rider.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.growthsee.common.core.domain.AjaxResult;
import com.growthsee.rider.domain.RiderInfo;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author csy
 * @since 2021-05-13
 */
public interface RiderInfoService extends IService<RiderInfo> {

    /**
     * 添加微信用户
     * @param riderInfo
     * @return
     */
    AjaxResult addWxMpUser(RiderInfo riderInfo);

    /**
     * 更新当前计分和消分
     * @param userId 当前用户
     * @param removeScore 计分减值
     * @param addScore 消分加值
     * @return
     */
    String updateScore(Long userId, BigDecimal removeScore,BigDecimal addScore);


    /**
     *如果当前累计计分大于计分上线则拉黑用户
     */
    void updateStatus(String userId);
}
